load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
    # Keep sorted.
    "//rs/bitcoin/replica_types",
    "//rs/interfaces",
    "//rs/registry/routing_table",
    "//rs/registry/subnet_features",
    "//rs/registry/subnet_type",
    "//rs/replicated_state",
    "//rs/test_utilities/types",
    "//rs/types/base_types",
    "//rs/types/management_canister_types",
    "//rs/types/types",
    "//rs/types/wasm_types",
    "@crate_index//:mockall",
    "@crate_index//:proptest",
    "@crate_index//:rand",
    "@crate_index//:rand_chacha",
    "@crate_index//:strum",
]

rust_library(
    name = "state",
    testonly = True,
    srcs = glob(["src/**/*.rs"]),
    crate_name = "ic_test_utilities_state",
    version = "0.9.0",
    deps = DEPENDENCIES,
)
